package com.fire.security.mapper;



import com.fire.security.annotation.AutoFill;
import com.fire.security.domain.Report;
import com.fire.security.dto.DeviceStatusCountDto;
import com.fire.security.enumeration.OperationType;

import java.util.List;

public interface ReportMapper {

    /**
    * 添加report
    * */
    @AutoFill(OperationType.INSERT)
    int insertReport(Report report);

    /**
    * 删除report
    * */
    int deleteReportById(String id);

    /**
    * 更新数据
    * */
    @AutoFill(OperationType.UPDATE)
    int  updateReportStatus(Report report);

    /**
    * 分页条件查询
    * */
    List<Report> findAllReports(Report report);

    /**
     * 驳回
    * */
    int back(Report report);

    List<DeviceStatusCountDto> countEventByStatus();
}